package com.lws.basic.base;

/**
 * @松 on 2019/5/13 09:16
 */
public class BaseMvpPresenter<V> {
    private V mView;

    void attachView(V view){
        this.mView = view;
    }


    void detachView(){
        mView = null;
        System.gc();
    }

    //View是否绑定
    public boolean isViewAttached() {
        return mView != null;
    }
}
